package com.hyq.service.impl;

import com.hyq.mapper.UserMapper;
import com.hyq.model.User;
import com.hyq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    public void register(String username, String password) {
        userMapper.save(username,password);
    }

    @Override
    public User login(User user) {
        List<Map<String, String>> login = userMapper.login(user);

        return null;
    }
}
